<?php /* Smarty version Smarty-3.1.18, created on 2017-09-05 16:19:21
         compiled from "/Applications/MAMP/htdocs/PHP/jifenshop/protected/template/wap/login.html" */ ?>
<?php /*%%SmartyHeaderCode:102759411259734fa92cefc2-58461579%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '533059b8a2fdc054d7ab90c57524d9db5bf3577f' => 
    array (
      0 => '/Applications/MAMP/htdocs/PHP/jifenshop/protected/template/wap/login.html',
      1 => 1504597177,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '102759411259734fa92cefc2-58461579',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.18',
  'unifunc' => 'content_59734fa9334667_51559521',
  'variables' => 
  array (
    'url' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_59734fa9334667_51559521')) {function content_59734fa9334667_51559521($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ("header.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<body>

<div class="navBar navBar-transparent">
	<a class="left" href="javascript:history.back()"><i class="return"></i></a>
	<div class="titleView">登录</div>
	<a class="right" href="?tpl=register&url=<?php echo urlencode($_smarty_tpl->tpl_vars['url']->value);?>
">注册</a>
</div>

<div class="login-index width-wrap">
	<form action="api.php?app=passport&act=login" method="post">
	<input type="hidden" name="gourl" value="<?php if ($_smarty_tpl->tpl_vars['url']->value=='') {?>wap.php?app=member&act=index<?php } else { ?><?php echo $_smarty_tpl->tpl_vars['url']->value;?>
<?php }?>" />
	<ul class="inputView">
		<li class="ge-bottom"><div><i></i><input type="tel" name="mobile" id="mobile" /></div></li>
		<li class="ge-bottom"><div class="password"><em></em><i></i><input type="password" name="password" id="password" /></div></li>
		<div class="buttonView">
			<a href="javascript:void(0)" class="btn">登录</a>
		</div>
		<a href="?tpl=forget" class="forget">忘记密码</a>
	</ul>
	</form>
</div>

<?php echo $_smarty_tpl->getSubTemplate ("footer.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<script>
function myFn(){
	if(!$('#mobile').val().length || !$('#password').val().length){
		$.overloadError('请输入手机号码与密码');
		return;
	}
	$('form').submit();
}
$(function(){
	$('html, body').addClass('height-wrap');
	$('#mobile').placeholder('请输入手机号码');
	$('#password').placeholder('请输入密码').onkey({
		callback : function(code){
			if(code==13)myFn();
		}
	});
	$('.password em').click(function(){
		var input = $('#password');
		if(!!input.data('show')){
			input.removeData('show');
			input.prop('type', 'password');
			$(this).removeClass('x');
		}else{
			input.data('show', true);
			input.prop('type', 'text');
			$(this).addClass('x');
		}
	});
	$('.btn').click(function(){
		myFn();
		return false;
	});
});
</script><?php }} ?>
